import { S } from '../s';
import { IPSAppUtilPage } from './ipsapp-util-page';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSAppUtilPageImpl
  extends PSModelObjectImpl
  implements IPSAppUtilPage
{
  get name():
    | 'DOWNLOADTMPFILE'
    | 'LOGIN'
    | 'LOGOUT'
    | 'START'
    | 'USER'
    | 'USER2'
    | 'USER3'
    | 'USER4'
    | 'USER5'
    | 'USER6'
    | 'USER7'
    | 'USER8'
    | 'USER9' {
    return this.M.name;
  }

  get pageUrl(): string {
    return this.M.pageUrl;
  }

  get targetType(): 'PAGEURL' | 'APPVIEW' {
    return this.M.targetType;
  }
  get cls(): string {
    return 'PSAppUtilPageImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._13) return true;
    return super.instanceof(cls);
  }
}
